#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QWidget>
#include <QIcon>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    MyPushButton()
    {}

    explicit MyPushButton(const QString &normalIconPath, const QString &pressedIconPath,
                 const QString& atIconPath, QWidget *parent = nullptr);


    protected:
    virtual void enterEvent(QEnterEvent *event);

        virtual void leaveEvent(QEvent *event);

        virtual void mousePressEvent(QMouseEvent *event);

        virtual void mouseReleaseEvent(QMouseEvent *event);

    private:
        bool at = false;
        QIcon m_normalIcon;
        QIcon m_pressedIcon;
        QIcon m_atIcon;
};

#endif // MYPUSHBUTTON_H
